Skip to content

chore(sdk): sync to agent_platform@2003fd2 (v0.1.13)#142

Closed
abonneth wants to merge 2 commits into
mainfrom
sync/agp-2003fd2
Closed

chore(sdk): sync to agent_platform@2003fd2 (v0.1.13)#142
abonneth wants to merge 2 commits into
mainfrom
sync/agp-2003fd2

Conversation

@abonneth

@abonneth abonneth commented Jun 24, 2026

Copy link
Copy Markdown
Collaborator

Auto-generated from agent_platform's codegen home (sdk-codegen/).

Version: 0.1.13 (patch; every sync bumps +0.0.1)
Upstream: agent_platform@2003fd2

Gate the reserved h/ namespace to admins (#1365)


Note

Medium Risk
Breaking change for callers of get_session_resource (return type and usage pattern) and new optional proxy URLs on browser provisioning; otherwise generated API surface additions.

Overview
Bumps hai-agents to v0.1.13 from upstream OpenAPI/codegen.

Adds client.quota.get_token_quota() and TokenQuotaStatus for org token usage metering. Browser environments gain optional BrowserNetwork / proxy_url on create, replace, and patch.

get_session_resource is a behavior change: it now streams raw bytes (sync/async iterators) after following the presigned redirect, raises NotFoundError on 404, and supports chunk_size via request options. NotFoundError is exported from the package.

Polling helpers drain remaining session events after settle when include_events is set, and SessionHandle.send_message accepts a plain string (wrapped as a user message). Sync/async clients still default api_key from HAI_API_KEY, but the constructor signature no longer evaluates getenv at import time.

Reviewed by Cursor Bugbot for commit 6413660. Bugbot is set up for automated code reviews on this repo. Configure here.

@abonneth abonneth requested a review from adeprezh as a code owner June 24, 2026 18:05
Co-authored-by: Cursor <cursoragent@cursor.com>

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 6413660. Configure here.

Comment thread src/hai_agents/polling.py
)
batch = tail.new_events or [] if tail is not None else []
if not batch:
break

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Misses answer on empty tail

Medium Severity

After settlement, the new tail-drain loop in wait_for_session / async_wait_for_session exits when new_events is empty before copying tail.answer into last_changes. A final /changes payload that only sets answer can be ignored, so _final_changes may not see the answer and run_session can return None or fail schema validation.

Additional Locations (1)
Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 6413660. Configure here.

@abonneth abonneth closed this Jun 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants